CMAKE_MINIMUM_REQUIRED(VERSION 3.0)

SET(TEST01_SRC test01.cpp)
ADD_EXECUTABLE(test01 ${TEST01_SRC})

SET(TESTLOGGER_SRC testLogger.cpp)
ADD_EXECUTABLE(testLogger ${TESTLOGGER_SRC})

SET(TESTFILE testFile.cpp)
ADD_EXECUTABLE(testFile ${TESTFILE})

SET(TESTASYNCLOGGER testAsyncLogger.cpp)
ADD_EXECUTABLE(testAsyncLogger ${TESTASYNCLOGGER})

SET(TESTEVENTLOOP testEventLoop.cpp)
ADD_EXECUTABLE(testEventLoop ${TESTEVENTLOOP})

SET(TESTTIMER testTimer.cpp)
ADD_EXECUTABLE(testTimer ${TESTTIMER})

SET(TESTINETADDR testInetAddress.cpp)
ADD_EXECUTABLE(testInetAddr ${TESTINETADDR})

SET(TESTACCEPTOR testAcceptor.cpp)
ADD_EXECUTABLE(testAcceptor ${TESTACCEPTOR})

SET(TESTTCPSERVER testTcpServer.cpp)
ADD_EXECUTABLE(testTcpServer ${TESTTCPSERVER})

SET(TESTCONNECTOR testConnector.cpp)
ADD_EXECUTABLE(testConnector ${TESTCONNECTOR})

SET(TESTTCPCLIENT testTcpClient.cpp)
ADD_EXECUTABLE(testTcpClient ${TESTTCPCLIENT})

TARGET_LINK_LIBRARIES(test01 Base)
TARGET_LINK_LIBRARIES(testLogger Base)
TARGET_LINK_LIBRARIES(testAsyncLogger Base pthread)
TARGET_LINK_LIBRARIES(testEventLoop net Base pthread)
TARGET_LINK_LIBRARIES(testTimer net Base pthread)
TARGET_LINK_LIBRARIES(testInetAddr net Base)
TARGET_LINK_LIBRARIES(testAcceptor net Base)
TARGET_LINK_LIBRARIES(testTcpServer net Base pthread)
TARGET_LINK_LIBRARIES(testConnector net Base)
TARGET_LINK_LIBRARIES(testTcpClient net Base)